package com.ruoyi.project.beautyflower.repaymentPlan.service;

import com.ruoyi.project.beautyflower.repaymentPlan.domain.RepaymentPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 还款计划 服务层
 *
 * @author lxs
 * @date 2018-10-16
 */
public interface IRepaymentPlanService {
    /**
     * 查询还款计划信息
     *
     * @param id 还款计划ID
     * @return 还款计划信息
     */
    public RepaymentPlan selectRepaymentPlanById(Integer id);

    /**
     * 查询还款计划列表
     *
     * @param repaymentPlan 还款计划信息
     * @return 还款计划集合
     */
    public List<RepaymentPlan> selectRepaymentPlanList(RepaymentPlan repaymentPlan);

    /**
     * 新增还款计划
     *
     * @param repaymentPlan 还款计划信息
     * @return 结果
     */
    public int insertRepaymentPlan(RepaymentPlan repaymentPlan);

    /**
     * 修改还款计划
     *
     * @param repaymentPlan 还款计划信息
     * @return 结果
     */
    public int updateRepaymentPlan(RepaymentPlan repaymentPlan);

    /**
     * 删除还款计划信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteRepaymentPlanByIds(String ids);

    /**
     * 查询还款计划列表
     *
     * @param repaymentPlan 还款计划信息
     * @return 还款计划集合
     */
    public List<RepaymentPlan> selectList(RepaymentPlan repaymentPlan);

    /**
     * 根据订单号及期数查询订单计划
     *
     * @param orderNumber
     * @param installmentNo
     * @return
     */
    RepaymentPlan selectOrderByListByOrderNumberAndinstallmentNo(String orderNumber, String installmentNo);

    /**
     * 根据订单号查询超期订单计划
     * @return
     */
    List<RepaymentPlan> selectOrderByListByOrderNumber(String orderNumber);
}
